package structuralPattern.decorator.example01;

public class Test01 {
    public static void main(String[] args) {
        // 被装饰的对象
        ConcreteComponent concreteComponent = new ConcreteComponent();

        // 装饰器对象
        ConcreteDecorator concreteDecorator = new ConcreteDecorator(concreteComponent);

        // 装饰器对象调用方法
        concreteDecorator.operation();
    }
}
